//  资源下拉选择
export default {
  methods: {
    getOptions(category) {
      sa.ajax('/category/options', {
        id: category
      }, function (res) {
        let obj = {}
        if (res.code === 200) {
          res.data.forEach((item) => {
            obj[item.id] = item.name
          });
          this.options = obj
        }
      }.bind(this), {
        type: "get"
      })
    },
  }
}